package com.ncbee.base.service.serviceimpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ncbee.base.model.entity.Dept;
import com.ncbee.base.dao.DeptDao;
import com.ncbee.base.model.vo.TreeVo;
import com.ncbee.base.service.DeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author youdianyun
 * @since 2018-11-23
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptDao, Dept> implements DeptService {

    @Override
    public List<TreeVo> getAllDeptTree() {
        return baseMapper.queryAllDeptTree();
    }
}
